package com.song.eduservice.hystrix;

import com.song.commonutils.ResultObj;
import com.song.eduservice.client.vodfeign.VodFeign;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author song
 * @data 2020/4/3
 */
@Component
public class VodHystrixFactory implements VodFeign {
    @Override
    public String uploadAlyiVideo(MultipartFile file) {
        return "上传视频出错了";
    }

    @Override
    public ResultObj deleteAlyVideo(String id) {
        return ResultObj.error().message("删除视频出错了");
    }

    @Override
    public void deleteBatchVideo(List<String> videoIdList) {

    }
}
